package com.zhaoyd.uaademo.core.orm.extensions.mapper;

import com.zhaoyd.uaademo.core.orm.extensions.provider.UpdateListProvider;
import org.apache.ibatis.annotations.UpdateProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * @author zhaoyd
 * @create 2018-04-16 10:33
 **/
@RegisterMapper
public interface UpdateListMapper<T> {
    /**
     * 批量更新,不更新null值<br>
     * @param recordList
     * @return
     */
    @UpdateProvider(type = UpdateListProvider.class, method = "dynamicSQL")
    int updateListByPrimaryKeySelective(List<T> recordList);
}
